package com.fir.my.batis.plus.controller;

import com.fir.my.batis.plus.entity.SysDept;
import com.fir.my.batis.plus.service.ISysDeptService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 部门表 前端控制器
 * </p>
 *
 * @author fir
 * @since 2024-05-20 05:55:14
 */
@RestController
@RequestMapping("/sysDept")
public class SysDeptController {


    /**
     * 部门表 服务类
     */
    @Resource
    private ISysDeptService iSysDeptService;


    @GetMapping("/list")
    public List<SysDept> get(){
        return iSysDeptService.list();
    }
}
